/*
 * @Description: 数据类型管理
 */
import request from '@/utils/request'
export default {
    gethasconfig() {
        return request.get(`v3/iot/dataTypeConfig/queryExistence`);
    },
    getnohasconfig() {
        return request.get(`v3/iot/dataTypeConfig/queryNOExistence`);
    },
    addlist(params) {
        return request.post('v3/iot/dataTypeConfig/add', {
            ...params,
            organizationNo: sessionStorage.organizationNo
        });
    },
    delList(list) {
        return request.post('v3/iot/dataTypeConfig/delList', {
            'dataTypeConfigIdList': list
        });
    },
    editlist(params) {
        return request.post('v3/iot/dataTypeConfig/edit', {
            ...params,
            organizationNo: sessionStorage.organizationNo
        });
    },
    queryConfig(id) {
        return request.get(`v3/iot/dataTypeConfig/query?dataTypeConfigId=${id}`);
    },
    ownFarmingTypelist(params) {
        return request.post('v3/organization/organizationFarmingTypeMapper/queryByCondition', params)
    }
}
